package com.shopping.huaju.order.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.shopping.huaju.common.utils.PageUtils;
import com.shopping.huaju.order.entity.OrderEntity;
import com.shopping.huaju.order.vo.*;

import java.util.Map;
import java.util.concurrent.ExecutionException;

/**
 * 订单
 *
 * @author tofu
 * @email 980877810@qq.com
 * @date 2024-01-14 21:09:15
 */
public interface OrderService extends IService<OrderEntity> {

    PageUtils queryPage(Map<String, Object> params);

    OrderConfirmVo confirmOrder() throws ExecutionException,InterruptedException;

    SubmitOrderResponseVo submitOrder(OrderSubmitVo vo);

    OrderEntity getOrderByOrderSn(String orderSn);

    void closeOrder(OrderEntity orderEntity);

    PayVo getOrderPay(String orderSn);

    PageUtils queryPageWithItem(Map<String, Object> params);

    String handlePayResult(PayAsyncVo asyncVo);

}

